package mcxtzhang.itemdecorationdemo.model;

import com.mcxtzhang.indexlib.IndexBar.bean.BaseIndexPinyinBean;
import com.mcxtzhang.indexlib.suspension.ISuspensionInterface;

import java.util.List;

/**
 * 介绍：美团城市列表 HeaderView Bean
 * 作者：zhangxutong
 * 邮箱：mcxtzhang@163.com
 * 主页：http://blog.csdn.net/zxt0601
 * 时间： 2016/11/28.
 */

public class MeituanHeaderBean extends BaseIndexPinyinBean
{
    private List<String> cityList;
    //悬停ItemDecoration显示的Tag
    private String suspensionTag;
    private String indexTag;

    public MeituanHeaderBean()
    {
    }

    public MeituanHeaderBean(List<String> cityList, String suspensionTag, String indexBarTag)
    {
        this.cityList = cityList;
        this.suspensionTag = suspensionTag;
        this.indexTag = indexBarTag;
    }

    public List<String> getCityList()
    {
        return cityList;
    }

    public MeituanHeaderBean setCityList(List<String> cityList)
    {
        this.cityList = cityList;
        return this;
    }

    @Override
    public String getSuspensionTag()
    {
        return this.suspensionTag;
    }

    @Override
    public String showContent()
    {
        return suspensionTag;
    }

    @Override
    public String getIndexTag()
    {
        return indexTag;
    }

    /**
     * 固定在头部
     * @return
     */
    @Override
    public int fixAlign()
    {
        return ISuspensionInterface.HEADER;
    }
}
